< previous page page_155 next page >

Page 155
Chapter 8
Conditional Logic and Looping
When writing programs, you often have to make a decision about which line of code to execute next. If you dont make a decision, all the code in a procedure will simply execute from left to right and top to bottom. Many times you need to execute a different set of code based on some criteria input by the user. Visual Basic helps you perform this type of conditional logic by supplying you with If statements and Select Case statements. Also, you often need to iterate over a series of steps many times. This type of looping can be accomplished numerous ways with the built-in looping constructs in Visual Basic.

 
< previous page page_155 next page >

If you like this book, buy it!